package com.zkingsoft.pojo;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

import com.zkingsoft.model.Btn;

/**
 * Ajax请求返回的结果对象
 * 
 * @author jyy
 *
 */
public class AjaxResult implements Serializable {

	private static final long serialVersionUID = 1L;

	public static final String STATUS_ERR = "err";
	public static final String STATUS_OK = "ok";

	private String status;
	private String page;
	private String info;
	private Map<?, ?> mapInfo;
	private List<?> dataList;
	/**
	 * 总记录数
	 */
	private Integer totalRecold;
	private Integer pageCount = 0;
	
	public AjaxResult() {
	}
	
	public AjaxResult(String status, String page, String info, List<?> dataList, Integer totalRecold,
			Integer pageCount) {
		this.status = status;
		this.page = page;
		this.info = info;
		this.dataList = dataList;
		this.totalRecold = totalRecold;
		this.pageCount = pageCount;

	}
	
	
	/**
	 * 设置简单信息，这是一个便捷的方法
	 * 
	 * @param status
	 * @param page
	 * @param info
	 */
	public AjaxResult(String status, String page, String info) {
		this.status = status;
		this.page = page;
		this.info = info;
	}
	
	
	public Integer getPageCount() {
		return pageCount;
	}

	public void setPageCount(Integer pageCount) {
		this.pageCount = pageCount;
	}

	public Integer getTotalRecold() {
		return totalRecold;
	}

	public void setTotalRecold(Integer totalRecold) {
		this.totalRecold = totalRecold;
	}

	public List<?> getDataList() {
		return dataList;
	}

	public void setDataList(List<?> dataList) {
		this.dataList = dataList;
	}

	

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getPage() {
		return page;
	}

	public void setPage(String page) {
		this.page = page;
	}

	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info;
	}

	public Map<?, ?> getMapInfo() {
		return mapInfo;
	}

	public void setMapInfo(Map<?, ?> mapInfo) {
		this.mapInfo = mapInfo;
	}

}
